using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
using RTW.Core.Attributes;
using RTW.Core.Entity;
namespace RTW.Model
{
    /// <summary>
    /// Sys_Unit表实体类
    /// </summary>
	[Serializable]
	[Table(Name = "Sys_Unit")]
    public partial class SysUnit: IEntityBase
    {
       
        /// <summary>
        /// id
        /// </summary>		
		[Id(true)]
        public int DWID{ get; set; }
       
        /// <summary>
        /// 父ID
        /// </summary>		
		public int? PID{ get; set; }
       
        /// <summary>
        /// 单位名称
        /// </summary>		
		public string DWMC{ get; set; }
       
        /// <summary>
        /// 单位代码
        /// </summary>		
		public string DWDM{ get; set; }
       
        /// <summary>
        /// 父ID集
        /// </summary>		
		public string PIDS{ get; set; }
       
        /// <summary>
        /// 单位层级
        /// </summary>		
		public string DWCJ{ get; set; }
       
        /// <summary>
        /// 单位顺序
        /// </summary>		
		public string DWSX{ get; set; }

        /// <summary>
        /// 单位状态
        /// </summary>	
        [TypeConvert("int")]
        public bool DWZT { get; set; } = true;
       
        /// <summary>
        /// 单位备注
        /// </summary>		
		public string DWBZ{ get; set; }
		
		#region 分页参数
        /// <summary>
        /// 记录总数
        /// </summary>
		[IgnoreColumn]
        public int RecordCount { get; set; }
        #endregion

        /// <summary>
        /// 单位配置
        /// </summary>
        [IgnoreColumn]
        public List<SysUnitConfig> Configs { get; set; } = new List<SysUnitConfig>();
    } 
}
